/*
 *The code is written by NaLi, All rights reserved.
 */
package com.nali.dal.statement.function.formatter;

import java.util.Map;

import com.nali.dal.statement.function.FunctionException;
import com.nali.dal.statement.function.SingleArgumentDataHandler;

/**
 * @author gavin 
 * Created on 2011-4-11
 */
public class ConstantNormalization extends SingleArgumentDataHandler<Integer, Integer>{
	private Map<Integer, Integer> map;
	
	public Map<Integer, Integer> getMap() {
		return map;
	}

	public void setMap(Map<Integer, Integer> map) {
		this.map = map;
	}

	@Override
	public Integer handle(Integer obj) throws FunctionException {
		return this.map.get(obj);
	}
}
